package com.nbicc.news.service;

import com.nbicc.news.vo.ExtInfoAble;
import com.nbicc.news.vo.News;
import com.nbicc.parent.serivce.IBaseService;
import org.springframework.web.context.request.async.DeferredResult;

public interface INewsService extends IBaseService<News>{

    void applyVisitCountToNews(ExtInfoAble extInfoAble, Number newsId);

    /**
     * 异步插入
     * @param news
     * @return
     * @throws Exception
     */
    DeferredResult<Object> asyncInsert(News news) throws Exception;

    /**
     * 异步更新
     * @param news
     * @return
     * @throws Exception
     */
    DeferredResult<Object> asyncUpdateById(Object news) throws Exception;
}
